import request from '@/utils/request'

// 获取商品列表
export const productList = (data) => {
	return request({
		method: 'GET',
		url: '/products',
		params: data,
	})
}

// 获取商品详情
export const productDetail = (productId) => {
	return request({
		method: 'GET',
		url: `/product/detail/${productId}`,
	})
}
